package xc.src.runable.多线程实现方式;

public class Myrunable implements  Runnable{
    @Override
    public void run() {
        for (int i = 0; i <100 ; i++) {
            System.out.println(Thread.currentThread().getName()+","+i);//Thread.currentThread()先拿到线程在使用getName方法
        }
    }
}
